function sendRequest() {
  const input = document.querySelector('[type="file"]')
  if (input.files.length === 0) return

  const formData = new FormData()
  Array.from(input.files).forEach(elem => {
    formData.append('files', elem)
  })

  axios
    .post('http://127.0.0.1/api/post/uploadFiles', formData)
    .then(res => {
      console.log(res.status)
      console.log(res.data)
    })
    .catch(err => {
      console.log(err)
    })
}
